﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using AzukiMap.Request;
using Geotools.IO;
using Geotools.Geometries;
using AzukiMap.Layer;

namespace AzukiMapUI
{
    public class TestData
    {
        GeometryWKTReader _wktReader;

        public TestData()
        {
            PrecisionModel pm = new PrecisionModel();
            GeometryFactory gf = new GeometryFactory();
            _wktReader = new GeometryWKTReader(gf);
        }

        public void CreateThumbData(RasterIndexLayer layer )
        {
        }

        int riNum = 0;
        RasterIndexRecord CreateRasterIndexRecord(string uri, string extent)
        {
            RasterIndexRecord record = new RasterIndexRecord();
            record.id = riNum;
            record.RasterIndex = uri;
            record.Extent = (GTPolygon)_wktReader.Create(extent);

            return record;
        }
    }
}
